PinnedSachin PalUnderstanding *args & **kwargs in PythonWhen we see the documentation of any function that contains *args and **kwargs, have you ever wondered — What are these strange parameters…6 min read·Jul 25, 2022--1--1
Sachin PalinLevel Up CodingBest Practices for Positional and Keyword ArgumentsA function or a method can accept both positional and keyword arguments and that’s you who decide whether a function/method will accept…6 min read·Apr 24, 2024----
Sachin Palfor loop❌ map()✔️: Applying a function to each item in an iterableWhat would you do if you wanted to apply a function to each item in an iterable? Your first step would be to use that function by iterating…6 min read·Feb 27, 2024----
Sachin PalPython’s pickle Module: Serialize & De-serialize Python ObjectsSometimes you need to send complex data over the network, save the state of the data into a file to keep in the local disk or database, or…8 min read·Feb 4, 2024----
Sachin PalMySQL Database Creation and Integration with Flask AppMySQL is a widely used open-source relational database known for its performance, reliability, and scalability. It is suitable for various…9 min read·Jan 1, 2024----
Sachin PalTest Your Code Efficiently Using PytestYou may have done unit testing or heard the term unit test, which involves breaking down your code into smaller units and testing them to…12 min read·Dec 10, 2023----
Sachin PalWhy if __name__ == “__main__” is Used in Python ProgramsYou may have seen the if __name__ == '__main__': along with some code written inside this block in Python script. Have you ever wondered…4 min read·Nov 27, 2023--1--1
Sachin PalEasy Password Hashing Using bcrypt in PythonWeb-based services and websites store hashed versions of your passwords, which means your actual password isn’t visible or stored in their…5 min read·Nov 13, 2023--1--1
Sachin PalStandardize the Data Using StandardScaler() in MLEnsuring consistency in the numerical input data is crucial to enhancing the performance of machine learning algorithms. To achieve this…5 min read·Nov 9, 2023----
Sachin PalCreate a WebSocket Server and Client in PythonYou must have seen real-time applications where data is changed frequently or updated in real-time, this happens because that application…5 min read·Oct 29, 2023----